<!-- 巡查事项管理详情:事项名称,清单类型,所属行业,检查类型,检查频率,检查频次,事项说明 -->
<template>
  <el-dialog
    title="巡查事项管理详情"
    :visible.sync="dialogVisible"
    width="55%"
    custom-class="custom-dialog"
    :before-close="handleClose"
  >
    <el-form
      ref="queryForm"
      class="query-more-form"
      size="mini"
      label-width="6em"
      :model="query"
    >
      <el-row :gutter="20">
        <el-col :span="8">
          <el-form-item label="事项名称">
            <el-input
              v-model="query.itemName"
              class="search-ipt"
              placeholder="请输入事项名称"
              maxlength="255"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="清单类型">
            <el-input
              v-model="query.key2"
              class="search-ipt"
              placeholder="请输入清单类型"
              maxlength="255"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="所属行业">
            <el-input
              v-model="query.key3"
              class="search-ipt"
              placeholder="请输入所属行业"
              maxlength="255"
            />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="8">
          <el-form-item label="检查类型">
            <el-input
              v-model="query.key4"
              class="search-ipt"
              placeholder="请输入检查类型"
              maxlength="255"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="检查频率">
            <el-input
              v-model="query.key5"
              class="search-ipt"
              placeholder="请输入检查频率"
              maxlength="255"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="检查频次">
            <el-input
              v-model="query.key6"
              class="search-ipt"
              placeholder="请输入检查频次"
              maxlength="255"
            />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="事项说明">
            <el-input
              v-model="query.key7"
              class="search-ipt"
              placeholder="请输入事项说明"
              maxlength="255"
            />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-dialog>
</template>
<script>
import Pagination from "@/components/Pagination";
import { getList } from "@/api/system/matters";
export default {
  components: {
    Pagination,
  },
  data() {
    return {
      query: {
        total: 1,
        pageNum: 1,
        pageSize: 10,
      },
      tableData: [],
      department: [],
    };
  },
  created() {
    this.initData();
    getList().then((response) => {
      this.typeNames = response.rows;
    });
  },
  props: {
    dialogVisible: {
      type: Boolean,
      default: false,
    },
  },
  methods: {
    handleClose() {
      this.$emit("closeDialog");
    },
    handleSearchPanelChange(flag) {
      this.isShow = flag;
    },
    initData() {
      this.select();
    },
    select() {
      getList(this.query)
        .then((result) => {
          this.tableLoading = false;
          this.query.total = result.total;
          this.tableData = result.rows;
        })
        .catch(() => {
          this.tableLoading = false;
        });
    },
  },
};
</script>

<style scoped lang="scss">
</style>
